package org.example.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("scenic_spot")
public class Spot {

    @TableId
    private Integer id;

    private Integer cityId;

    @TableField(exist = false)
    private String cityName;

    private String spotName;

    private String content;

    private String summary;

    private Date updateTime;

    private Date createTime;

    private Integer createBy;

    private String thumbnail;

    private Integer updateBy;

    private Integer viewCount;

    private Integer status;

    private Integer delFlag;

    public Spot(Integer id, Integer viewCount) {

        this.id = id;

        this.viewCount = viewCount;
    }

}
